const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
    plugins: [new MiniCssExtractPlugin(),
    new HtmlWebpackPlugin({
        template: './pink/index.html' // 以此为基准生成打包后html文件
    })],
    module: {
        rules: [
            {
                test: /\.css$/i,
                use: [MiniCssExtractPlugin.loader, 'css-loader'],
            },
        ],
    },
};